import {Pages} from "@/libs/routed";


import Stars from './stars/AdminStarsLayout.vue'
import {RouteConfig} from "vue-router";
import StarsView from './stars/AdminStarsView.vue'
import AdvertLayout from './advert/AdminAdvertLayout.vue'
import AdvertCalendar from './advert/calendar/AdminAdvertCalendarView'
import AdvertView from './advert/advert/AdminAdvertView'
import ClubView from './stars/clubs/AdminClubEditor'
import UserView from './user/AdminUserView'
import ConfigView from './config/AdminVersionList'
import StarEditor from './stars/stars/AdminStarEditor'
import ClubApplyList from './apply/clubs/AdminClubApplyList'
import ClubApplyView from './apply/clubs/AdminClubApplyView'
import WithdrawApplyList from './apply/withdraw/AdminWithdrawApplyList'
import AddVersion from './config/AdminAddVersion'
import StarHome from './stars/AdminStarsPage'
import WithdrawView from './apply/withdraw/AdminWithdrawApplyView'


const opts : Array<RouteConfig> = [{
        path:'/stars',
        name:'stars',
        component:Stars,
        children: [{
            path:'/stars/:id',
            name:'stars-view',
            component: StarsView,
        }, {
            path:'/stars/home/page',
            name:'stars-home',
            component:StarHome,
        }]
    },
    {
        path:'/apply/club',
        component:ClubApplyList,
    },
    {
        path:'/apply/withdraw',
        component:WithdrawApplyList,
    },
    {
        path:'/apply/withdraw/view/:id',
        component:WithdrawView,
    },
    {
        path:'/apply/club/view/:uid',
        component:ClubApplyView,
    },
    {
        path:'/star/editor/:id',
        component:StarEditor,
    },
    {
        path:'/user/:id',
        name:'user-view',
        component:UserView,
    },
    {
        path:'/config',
        name:'config-view',
        component:ConfigView,
    },
    {
        path:'/config/version/add',
        name:'add-version',
        component:AddVersion,
    },
    {
        path:'/stars/club/editor/:id',
        name:'club-view',
        component: ClubView,
    },
    {
        path:'/advert',
        name:'advert',
        component:AdvertLayout,
        children: [{
            path:'/advert/calendar/:type',
            name:'advert-calendar',
            component:AdvertCalendar,
    },{
        path:'/advert/view/:id',
        name:'advert-view',
        component:AdvertView,
    }]
}];


export default opts